import request from '@/utils/request'

// 查询补卡规则管理列表
export function cardListPost(query) {
  return request({
    url: '/attendance/remedy/list',
    method: 'get',
    params: query
  })
}

// 查询补卡规则管理详细
export function  getCardPost(postId) {
  return request({
    url: '/attendance/remedy/' + postId,
    method: 'get'
  })
}

// 新增补卡规则管理
export function  AddCardPost(data) {
  return request({
    url: '/attendance/remedy',
    method: 'post',
    data: data
  })
}

// 修改补卡规则管理
export function  updateCardPost(data) {
  return request({
    url: '/attendance/remedy/edit',
    method: 'put',
    data: data
  })
}

// 删除补卡规则管理
export function  DelCardPost(postId) {
  return request({
    url: '/attendance/remedy/' + postId,
    method: 'delete'
  })
}
